function limpiar(formu) {
	for (var i=0; i<formu.elements.length; i=i+1) {
		//alert(formu.elements[i].type);
		//alert(formu.elements[i].value);
			
           if(formu.elements[i].type == "text" || formu.elements[i].type == "textarea" || formu.elements[i].type == "file") {
                   formu.elements[i].value = "";

           }
           if(formu.elements[i].type == "select-one")
           {
               formu.elements[i].options[0].selected = true;
           }
       }
}

function validarEnter(evt){
		
	var nav4 = window.Event ? true : false;
	var key = nav4 ? evt.which : evt.keyCode;
	
	//alert(evt.keyCode);
	//alert(key);
	
	if (key == undefined) {
		key = evt.keyCode;
	}
	
	//El enter es 13
	if (key == 13) {
		return true;
	} else {
		return false;
	}
}